package com.kajespero.service.commons.impl;

import com.kajespero.dao.commons.ReadWriteDAO;
import com.kajespero.domain.commons.ReadWriteDomain;
import com.kajespero.service.commons.ReadWriteService;
import com.kajespero.vo.IdentifierVO;

public class AbstractReadWriteService<Dom extends ReadWriteDomain<D,T , I>, D extends ReadWriteDAO<T, I>,T extends IdentifierVO<I>, I extends Comparable<I>> extends AbstractReadService<Dom, D, T, I> implements ReadWriteService<Dom, D, T,I>{

	@Override
	public void saveOrUpdate(T instance) {
		getDomain().saveOrUpdade(instance);
	}

	@Override
	public void delete(T instance) {
		getDomain().delete(instance);
	}

	@Override
	public void delete(I identifier) {
		getDomain().delete(identifier);
	}

	@Override
	public T createNewBean() {
		return getDomain().createNewBean();
	}
	
	

}
